cmake_minimum_required(VERSION 3.14)

set(CMAKE_CXX_STANDARD 17)

project(warlocklib CXX)

set(target_name "warlock")

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/warlock WARLOCK_SRCS)

add_library(${target_name} SHARED ${WARLOCK_SRCS})
add_library(${target_name}_static STATIC ${WARLOCK_SRCS})
target_include_directories(${target_name}
  PUBLIC ${PROJECT_SOURCE_DIR})

target_include_directories(${target_name} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(${target_name} PRIVATE DLL_EXPORT)

if(WIN32)
  target_compile_definitions(${target_name} PRIVATE OS_WIN)
endif(WIN32)
